<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<th:block th:include="tpl :: common_head()"></th:block>
	<th:block th:fragment="editor()">
		<script type="text/javascript" th:src="@{/assets/libs/wangEditor/wangEditor.js}"></script>
		<script type="text/javascript" th:inline="javascript">
	         $(function() {
	            var E = window.wangEditor;
	            var editor = new E('#editor');
	            // 隐藏“网络图片”tab
	            editor.customConfig.showLinkImg = false;
	            editor.customConfig.uploadImgServer = '../../system/image/uploadBannerImage?type=editer';  // 上传图片到服务器
	            editor.customConfig.uploadImgMaxSize = 100 * 1024 * 1024;// 将图片大小限制为 3M
	            editor.customConfig.uploadImgMaxLength = 1;// 限制一次最多上传 1 张图片
	            editor.customConfig.uploadImgTimeout = 20000;//timeout
	            editor.customConfig.uploadFileName = 'file';//文件
	            editor.customConfig.pasteFilterStyle = true;
	            editor.create();
	            top.Editorhtml=editor;//赋值，方便后面取值用
	            var html=$("#content").val();//读取数据
	            if(html){
	                top.Editorhtml.txt.html(html);//设置内容
	            }
	        });
		</script>
	</th:block>
</head>
<style>
	#uploader .statusBar .btns .webuploader-pick {
			display: none;
	}
	.webuploader-element-invisible{display:none}	
</style>
<body>
</body>
</html>